package mybatis;

import java.beans.Introspector;
import java.lang.invoke.SerializedLambda;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 〈〉
 *
 * @author coach tam
 * @email 327395128@qq.com
 * @create 2023/10/17
 * @since 1.0.0
 * 〈坚持灵活 灵活坚持〉
 */
public abstract class QueryWrapper<T> {
    abstract String whereSql();
    private T entityClass;
    public QueryWrapper() {
/*        Type t = getClass().getGenericSuperclass();
        Type firType = ((ParameterizedType) t).getActualTypeArguments()[0];
        try {
            entityClass = firType;
        } catch (ClassCastException e) {
            e.printStackTrace();
        }*/
    }


    public void setEntityClass(T entityClass) {
        this.entityClass = entityClass;
    }

    public T getEntityClass() {
        return entityClass;
    }
}
